<?php 
/**
 * @author Eugenio Fage
 * http://eugeniofage.wordpress.com/
 * http://code.google.com/p/monky/
 * 
 */

$this->set('title_for_layout',htmlentities($link['Link']['title']));

$this->Html->script('theme/link-vote.js',false); ?>
<?=$this->element('report-link') ?>
<div class="span-16 colborder whitebox" style="padding:14px">
  <?=$this->element('link',array('link'=>$link,'type'=>'view')) ?>
  <div style="clear:both"></div>
  <div id="comments" style="margin-top:16px">
  <?php 
    echo $this->element('comments/comments',compact('comments','link','error'));
  ?>
  </div>
</div>
<div class="span-7 last">
  <div class="actions small-cats"><?=$this->element('categories') ?></div>
  <div style="clear:both"></div>
  <?=$this->element('boxes',array('boxes'=>array('popular','votedsites','votedcomments','categories','tags'))); ?>
</div>
<?=$this->element('report-link') ?>
<script type="text/javascript">
  DO_VOTE_URL='<?=Router::url(array('controller'=>'links','action'=>'doVote')) ?>';
</script>